Skip to content

Conversation

@johnnesky
Copy link
Contributor

@johnnesky johnnesky commented Dec 13, 2024

The basics

The details

Resolves

Fixes the screenshot plugin to be compatible with the changes in RaspberryPiFoundation/blockly#8671 which fixes RaspberryPiFoundation/blockly#8272

Proposed Changes

It copies the inline style of the injection div to the screenshot svg.

Reason for Changes

The injection div's inline style uses CSS variables to link to the SVG filters that might be used by the blocks in the screenshot.

Test Coverage

No new tests but I manually tested taking screenshots while linking to blockly rc/v12.0.0.

Documentation

N/A

Additional Information

This change isn't necessary until Blockly v12.0.0 is released, but it's compatible with existing Blockly so we might as well fix it now.

@johnnesky johnnesky requested a review from a team as a code owner December 13, 2024 20:44
@johnnesky johnnesky requested review from gonfunko and removed request for a team December 13, 2024 20:44
@johnnesky johnnesky merged commit eecfccd into RaspberryPiFoundation:master Dec 14, 2024
10 checks passed
@johnnesky johnnesky deleted the nesky_screenshot_vars branch December 14, 2024 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor SVG filters to be singletons

2 participants